package com.weipai.springboot.module.mapper;

import com.weipai.springboot.model.CustomerFootprint;
import com.weipai.springboot.model.GoodsCollection;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface CustomerFootprintMapper {

    int deleteByPrimaryKey(String footprintId);

    int insert(CustomerFootprint record);

    int insertSelective(CustomerFootprint record);

    CustomerFootprint selectByPrimaryKey(String footprintId);

    int updateByPrimaryKeySelective(CustomerFootprint record);

    int updateByPrimaryKey(CustomerFootprint record);

    //列表
    List<Map<String, Object>> selectAllByCustomerFootprint(@Param("customerId") String customerId,
                                                           @Param("page") Integer page,
                                                           @Param("size")  Integer size);
//    Map<String, Object> selectAllByCustomerFootprint(@Param("customerId")String customerId);

    int deleteByCustomer(String customerId);

    //验证 是否添加过此足迹
    List<CustomerFootprint> verCustomerFootprint(@Param("customerId")String customerId,@Param("goodsId") String goodsId);
}